﻿@using EasyDocFlow.Web.Models

@model LogonModel
@{
    ViewBag.Title = "LogOn";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

<h2 class="page-title">Login to your account</h2>

@using (Html.BeginForm())
{
    @Html.HiddenFor(model => model.ReturnUrl)

    <table class="fields-container">
        <tr>
            <td colspan="2" class="info">@Html.ValidationMessage("LoginFailed")</td>
        </tr>
        <tr>
            <td class="title">Username</td>
            <td class="field">
                @Html.TextBoxFor(model => model.UserName)
                @Html.ValidationMessageFor(model => model.UserName)
            </td>
        </tr>
        <tr>
            <td class="title">Password</td>
            <td class="field">
                @Html.PasswordFor(model => model.Password)
                @Html.ValidationMessageFor(model => model.Password)
            </td>
        </tr>
        <tr>
            <td></td>
            <td>@Html.CheckBoxFor(model => model.RememberMe) Remember me?</td>
        </tr>
        <tr>
            <td></td>
            <td><input type="submit" value="Login" /></td>
        </tr>
    </table>
}
<div class="info">
    <a href="@Url.Action("Register","Account")">Register</a> if you don't have account.
</div>
